package com.jn.exam.question.service;

import com.jn.exam.question.entity.PersonalQuestion;
import com.jn.exam.question.entity.PersonalQuestionStore;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jn.exam.question.entity.Question;
import com.jn.exam.question.entity.vo.QuestionWrapper;

import java.util.List;
import java.util.Map;
import java.util.concurrent.Future;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 江南大学1033190417
 * @since 2022-01-18
 */
public interface PersonalQuestionStoreService extends IService<PersonalQuestionStore> {

    boolean deleteRelationship(String personalQuestionStoreId, String teacherId);

    List<String> selectPersonalQuestionIds(String personalQuestionStoreId, String teacherId);

    List<Map<String, Integer>> getPersonalQuestionStoreTypeNumber(String personalQuestionStoreId);

    List<PersonalQuestion> pageSelect(QuestionWrapper questionWrapper);

    Integer pageTotal(QuestionWrapper questionWrapper);

    boolean removeByPersonalQuestionStoreId(String personalQuestionStoreId);

    Future<Boolean> addQuestionToPersonalStore(Question question, String personalQuestionStoreId);
}
